export default {
  changeCity(state, city) {
    state.city = city;

    //将city存储在localStorage中
    //try catch 防止报错
    try {
      localStorage.city = city;
    } catch (e) {}

  }
}
